import http from '../request.js'
//退出登录
export function deleteLogined(data){
	return http({
		url:'/nurse/login/deleteLogined',
		method:"GET",
		data:data
	})
}
// 账号密码登录
export function loginByPassword(data){
	return http({
		url:'/nurse/login/loginByPassword',
		method:"post",
		data:data
	})
}
// 短信验证码登录
export function loginByVerificationCode(data){
	return http({
		url:'/nurse/login/loginByVerificationCode',
		method:"post",
		data:data
	})
}
// 发送短信验证码
export function senMsg(data){
	return http({
		url:'/nurse/login/sms',
		method:"post",
		data:data
	})
}
// 验证码手机号判断
export function checkSms(data){
	return http({
		url:'/nurse/login/checkSms',
		method:"post",
		data:data
	})
}
// 注册
export function register(data){
	return http({
		url:'/nurse/login/register',
		method:"post",
		data:data
	})
}
// 修改登录密码
export function updatePassword(data){
	return http({
		url:'/nurse/login/updatePassword',
		method:"get",
		data:data
	})
}
// 获取登录信息
export function getLoginInfo(data){
	return http({
		url:'/nurse/getLoginInfo',
		method:"get",
		data:data
	})
}
//一键登录
export function oneKeyLogin(data){
	return http({
		url:`/nurse/login/oneKeyLogin/${data}`,
		method:"get",
		data:data
	})
}
export function oneKeyLoginUnipush(data){
	return http({
		url:`/nurse/login/oneKeyLoginUnipush`,
		method:"get",
		data:data
	})
}

//服务须知隐私详情
export function selectHint(data){
	return http({
		url:'/nurse/login/selectHint',
		method:"get",
		data:data
	})
}
// 日志
export function loginLog(data){
	return http({
		url:'/nurse/login/insertNurseRecord',
		method:"post",
		data:data
	})
}

